/*import shareUtil from '../../utils/shareUtil'
import analyticsUtil from '../../utils/analyticsUtil'*/
export const menuShare = {
  onShareAppMessage: function (res) {
    if (res.from === 'menu') {
      // 点击右上角分享，第几次分享累加，并进行上报
/*      shareUtil.addShareStatistics('menu')

      // 生成shareToken
      let teacherInfo = wx.getStorageSync('teacherInfo') || {userId: '0'}
      let st = teacherInfo.userId + '_' + new Date().getTime()
      let formval = {
        st: st,
        shareName: 'teacherInviteTeacher',
        bizParams: '',
        status: 'init'
      }
      this.$store.dispatch('login/setShareWxdone', {formval: formval}).then(res => console.log('setShareWxdone', res))

      // 邀请老师
      analyticsUtil.reportAnalytics('click_invite_teacher_inprize1010', {})
      let shareTitle = '推荐我们班用的背诵神器，1秒掌握全班背诵情况'
      let shareUrl = '/static/images/share-menu.png'
      let sharePath = '/pages/teacherregister/main?st=' + st
      return {
        title: shareTitle,
        path: sharePath,
        imageUrl: shareUrl
      }*/
    }
  }
}
